package com.example.daibanshiwu.mapper;

import com.example.daibanshiwu.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MatterMapper {
    List<Message> getMessage(@Param("receiverUserId") int receiverUserId);

    //更新事务状态
    int updateStatus(@Param("messageId") Integer messageId, @Param("status") String status);

    //添加处理信息
    int insertProcessingRecord(@Param("processingRecord") ProcessingRecord processingRecord);

    //查询详情
    MessageDetailDTO findDetailById(@Param("messageId") Integer messageId);

    //预览文件
    FileDTO findFileByMessageId(@Param("id") String id);
}
